<?php /*a:2:{s:81:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/website/ipforbid.html";i:1678364213;s:77:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/public/style.html";i:1678364220;}*/ ?>
<!DOCTYPE html>
<html class="x-admin-sm">
    
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <?php if(app('request')->param('refresh') == '1'): ?><meta http-equiv="refresh" content="20"/><?php endif; ?>
        <link rel="stylesheet" href="/static/admin/css/font.css">
<link rel="stylesheet" href="/static/admin/css/xadmin.css">
<script type="text/javascript"	src="/static/admin/js/jquery.min.js"></script>
<script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
<script type="text/javascript" src="/static/admin/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/plugin/webuploader/webuploader.css">
<script type="text/javascript" src="/plugin/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/plugin/clipboard/clipboard.js"></script>
<!--[if lt IE 9]>
  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
function uploadimg(f1,f2,f3) {
	//f2 = "'" + f2 + "'";
	//alert(f2);
	var $list =$(f1);
	var thumbnailWidth = 150;
	var thumbnailHeight = 150;
	// 初始化Web Uploader
	var uploader = WebUploader.create({
		// 选完文件后，是否自动上传。
		auto: true,
		// swf文件路径
		swf: '/plugin/webuploader/Uploader.swf',
		// 文件接收服务端。
		server: '/plugin/uploadify/uploader.php',
		// 选择文件的按钮。可选。
		// 内部根据当前运行是创建，可能是input元素，也可能是flash.
		pick: f2,
		// 只允许选择图片文件。
		accept: {
			title: 'Images',
			extensions: 'gif,jpg,jpeg,bmp,png',
			mimeTypes: 'image/*'
		}
	});
	// 当有文件添加进来的时候
	uploader.on( 'fileQueued', function( file ) {
	    var $li = $('<div id="' + file.id + '" class="file-item thumbnail">' +  '<img></div>'),
	        $img = $li.find('img');
	    
	    // $list为容器jQuery实例
	    $list.html( $li );

	    // 创建缩略图
	    // 如果为非图片文件，可以不用调用此方法。
	    // thumbnailWidth x thumbnailHeight 为 100 x 100
	    uploader.makeThumb( file, function( error, src ) {
	        if ( error ) {
	            $img.replaceWith('<span>不能预览</span>');
	            return;
	        }
	        $img.attr( 'src', src );
	    }, thumbnailWidth, thumbnailHeight );
	});
	uploader.on('uploadSuccess', function(file, response){
		  $(f3).val(response._raw);
	});
}
</script>
        <script type="text/javascript">
          $(document).ready(function(){
        	  var clipboard = new ClipboardJS('#copy',{
                  text: function(trigger) {
                       layer.msg("复制成功！");
                       return trigger.getAttribute('data-text');
                  }
              });
          })
        </script>
    </head>
    
    <body>
        <div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">首页</a>
                <a href="">基础管理</a>
                <a><cite>IP拦截列表</cite></a>
            </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
                <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
            </a>
        </div>
   
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <form class="layui-form layui-col-space5" method="post">
                                <div class="layui-input-inline"><input type="text" name="kw" placeholder="请输入要查找的IP" autocomplete="off" class="layui-input"></div>
                                <div class="layui-input-inline">
                                    <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form>
                        </div>
                        <div class="layui-card-header">                           
     
                        </div>     
                        <div class="layui-card-body ">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>IP</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <tr>
                                        <td><?php echo htmlentities($vo['id']); ?></td>   
                                        <td><?php echo htmlentities($vo['ip']); ?></td>                                                                  
                                        <td class="td-manage">                                                                         
                                           <a title="删除" onclick="remove_del(this,'<?php echo url("delIpforbid",array("id"=>$vo['id'])); ?>')" href="javascript:void(0);"><i class="layui-icon">&#xe640;</i></a>
                                        </td>
                                    </tr>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </tbody>
                            </table>
                        </div>
                        <div class="layui-card-body">
                            <div class="page"><div class="page"><?php echo $page; ?></div></div>
                        </div>
                    </div>
                </div>
            </div>
            <include file="Public/footer" />
        </div>
    </body>
    <script>
       layui.use(['laydate', 'form'],
        function() {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
            });

            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
            });
        });
     </script>

</html>